package com.bci.pwtz.task.thread;

import com.bci.pwtz.common.PwtzConstants;
import com.bci.pwtz.common.util.SpringUtil;
import com.bci.pwtz.service.ZypdsService;
import com.bci.pwtz.service.ZyxsbdzService;

public class AuditDeviceDataThread extends BaseThread
{ 
    public AuditDeviceDataThread()
    {
        interval = PwtzConstants.AUDIT_BYQ_INTERVAL * 60;
        threadName = "中压配电室和中压箱式变电站自动计算配变总容量任务";
    }
    
    @Override
    public void doWork() throws Exception
    {
        ZyxsbdzService zyxsbdzService = (ZyxsbdzService)SpringUtil.getBean("zyxsbdzService");
        zyxsbdzService.refreshDeviceData();
        ZypdsService zypdsService = (ZypdsService)SpringUtil.getBean("zypdsService");
        zypdsService.refreshDeviceData();
    }
}
